<template>
  {{count}}
  <button @click="a1()">点击+1</button>
</template>
<script setup>
import { useStore } from 'vuex'
import { computed } from 'vue'
const store = useStore();
let count = computed(() => store.state.count);
const a1 = () => {
  //store.commit('add');
  store.commit('increment', 10)
}
</script>

<style scoped>
</style>
